package com.ruoyi.teacher.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 老师排班对象 t_teacher_rostering
 * 
 * @author ruoyi
 * @date 2022-12-26
 */
public class TTeacherRostering extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 考勤组ID */
    @Excel(name = "考勤组ID")
    private Long groupId;

    /** 用户userId */
    @Excel(name = "用户userId")
    private String userid;

    /** 工作日，代表具体哪一天的排班 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "工作日，代表具体哪一天的排班", width = 30, dateFormat = "yyyy-MM-dd")
    private Date workDate;

    private Long teacherId;

    private String teacherName;

    private Long shiftId;

    private String campus;

    private String subject;

    private String type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setGroupId(Long groupId) 
    {
        this.groupId = groupId;
    }

    public Long getGroupId() 
    {
        return groupId;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public void setWorkDate(Date workDate)
    {
        this.workDate = workDate;
    }

    public Date getWorkDate() 
    {
        return workDate;
    }

    public Long getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Long teacherId) {
        this.teacherId = teacherId;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public Long getShiftId() {
        return shiftId;
    }

    public void setShiftId(Long shiftId) {
        this.shiftId = shiftId;
    }

    public String getCampus() {
        return campus;
    }

    public void setCampus(String campus) {
        this.campus = campus;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("groupId", getGroupId())
            .append("userid", getUserid())
            .append("workDate", getWorkDate())
            .append(("teacherName"), getTeacherName())
            .append(("teacherId"), getTeacherId())
            .append("shiftId", getShiftId())
            .append("campus", getTeacherId())
            .append("subject", getTeacherId())
            .append("type", getTeacherId())
            .toString();
    }
}
